<%@page import="com.gadglet.data.DomainUserUtils,com.gadglet.params.SharedConstants,javax.jdo.PersistenceManager,com.google.appengine.api.users.*,com.gadglet.data.utils.PMF,com.gadglet.util.*,com.gadglet.data.Gadget,java.util.*,javax.jdo.Query"%>
<%
if(request.getParameter("gname")==null)
	return;

PersistenceManager pm = PMF.get().getPersistenceManager();
try {
    Gadget g = pm.getObjectById(Gadget.class, request.getParameter("gname"));
    if (DomainUserUtils.isOpenIdUserAdmin() )
         g.setStatus(SharedConstants.gadgetStatusOnLine);
  	}
finally {
    pm.close();
}

response.sendRedirect("/index.jsp");

%>
